Post

Replies

Boosts

Views

Activity

Crash register push notification swift6
Hi when setting the language to iOS 6 my app crashes on this piece of code: func registerForPushNotifications() { UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .sound, .badge]) { granted, error in print("Permission granted: \(granted)") guard granted else { return } self.getNotificationSettings() } } It has to do with the requestAuthorization When I restart the app it crashes immediately. This is because I had already made a choice for this. When I change the language back to swift 5 it works fine again. Removing the self.getNotifcationSettings has nothing to do with it. Also tried to add @MainActor to the function. This is the tread where it crashes on: Thread 7 Queue : com.apple.usernotifications.UNUserNotificationServiceConnection.call-out (serial) Does anybody have a idea how to fix this?
1
1
306
Sep ’24
iOS Verification code suggestion shows on every textfield
I  have a problem. I have implemented the sms verification. When I send the request to get a sms verification code I will receive it. On my textfield with contenttype : "one time code" I will get the suggestion that was send to me. After that I go to a new view with a lot of textfields. There the content type is: Name. County or Unspecified. But when I click on a the textfield I directly see the sms code as a suggestion. Is that normal behavior on a iPhone or not. Because I think it is not. I have also looked a lot but cannot find anything about it. The only thing is that some people have it but no solutions.
1
0
611
Oct ’20